﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using QuanLyTKB_TienDoGD.QuanLyTaiKhoan;
using QuanLyTKB_TienDoGD.QuanLyMonHoc;
using QuanLyTKB_TienDoGD.QuanLyLopHoc;
using QuanLyTKB_TienDoGD.QuanLyGiaoVien;
using QuanLyTKB_TienDoGD.QuanLyKeHoachGD;
using QuanLyTKB_TienDoGD.QuanLyTKBDeNghi;
using QuanLyTKB_TienDoGD.QuanLyTKB;


namespace QuanLyTKB_TienDoGD
{
    public partial class frmMain : Office2007RibbonForm
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            this.Size = this.MaximumSize = MinimumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
            frmThongTin frm = new frmThongTin();
            XuLyFormCon(frm);

        }

        public void XuLyFormCon(Form frm)
        {
            while (this.MdiChildren.Length > 0)
            {
                this.MdiChildren[0].Close();
            }
            frm.MdiParent = this;
            frm.Show();
        }

        private void btiCapNhatTaiKhoan_Click(object sender, EventArgs e)
        {
            frmDoiMatKhau frm = new frmDoiMatKhau();
            frm.ShowDialog();
        }

        private void btiMonHoc_Click(object sender, EventArgs e)
        {
            frmQLMonHoc frm = new frmQLMonHoc();
            XuLyFormCon(frm);
        }

        private void btiLopHoc_Click(object sender, EventArgs e)
        {
            frmQuanLyLopHoc frm = new frmQuanLyLopHoc();
            XuLyFormCon(frm);
        }

        private void btiGiaoVien_Click(object sender, EventArgs e)
        {
            frmQuanLyGiaoVien frm = new frmQuanLyGiaoVien();
            XuLyFormCon(frm);
        }

        private void btiKeHoachGiangDay_Click(object sender, EventArgs e)
        {
            frmQuanLyKeHoachGiangDay frm = new frmQuanLyKeHoachGiangDay();
            XuLyFormCon(frm);
        }

        private void btiQLTKBDeNghi_Click(object sender, EventArgs e)
        {
            frmQLTKBDeNghi frm = new frmQLTKBDeNghi();
            XuLyFormCon(frm);
        }

        private void btiTKB_Click(object sender, EventArgs e)
        {
            frmThoiKhoaBieu frm = new frmThoiKhoaBieu();
            XuLyFormCon(frm);
        }

        private void btiHuongDanSuDung_Click(object sender, EventArgs e)
        {
            frmHelp frm = new frmHelp();
            XuLyFormCon(frm);
        }

    }
}
